// pages/my-profile/basic-info.js
Component({
  properties: {},
  data: {
    title: '基本信息',
    userInfo: {},
    iconLists: {},
  },
  attached() {
    console.log('基本信息详情页面-组件已挂载到页面');
    const userInfo = wx.getStorageSync('userInfo') || {}; 
    const iconLists = {
      backgroundUrl: "cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/myProfilePage/basic-info.png",
      avatar: "cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/myProfilePage/avatar.jpg",
      logo: "cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/myProfilePage/mianyanglogo.png",
      renzheng: "cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/myProfilePage/yirenzheng.png",
      paobuhao: "cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/myProfilePage/icon/editInfoIcon/paobuhao.png",
      nicknameIcon: "cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/myProfilePage/icon/editInfoIcon/nickname.png",
      sexIcon: "cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/myProfilePage/icon/editInfoIcon/sex.png",
      weightIcon: "cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/myProfilePage/icon/editInfoIcon/weight.png",
      heightIcon: "cloud://tfjkp-0ge80vu9ea710148.7466-tfjkp-0ge80vu9ea710148-1305195523/myjkp/myProfilePage/icon/editInfoIcon/height.png",
    }
    this.setData({
      userInfo: userInfo,
      iconLists: iconLists
    });
  },

  methods: {
    // 返回上一页
    goBack() {
      wx.navigateBack({
        delta: 1
      });
    }
  }
});